package com.chenyue.cm.user.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chenyue.cm.user.domain.JdThirdInformation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author libingxing
 */
@Data
public class JdAppUserPlatformVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "头像")
    private String headImg;

//    @ApiModelProperty("平台详情")
//    private JdThirdInformation jdThirdInformation;
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer thirdId;

    @ApiModelProperty(value = "第三方机构id（user表）")
    private Integer userId;

    @ApiModelProperty(value = "第三方机构banner")
    private String banner;

    @ApiModelProperty(value = "第三方机构简介")
    private String thirdIntroduction;

    @ApiModelProperty(value = "第三方机构风采")
    private String thirdDetails;

    @ApiModelProperty(value = "入驻时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ct;
}
